|
|
|
|
|
|
|
The drop-down calendar portion of the DateTimePicker control is actually another custom control called the MonthView control (see Figure 31.2). When you use this control as a separate control, it has many properties that allow you to select a range of dates and display multiple months at one time. |
|
|
|
|
|
|
|
|
Examples Filename: MonthView.frm |
|
|
|
|
|
|
|
|
Figure 31.2
A MonthView control example. |
|
|
|
|
|
|
|
|
Common Properties of the MonthView Control |
|
|
|
|
|
|
|
|
Youll use many properties with the MonthView control. In addition to all the runtime properties of the DateTimePicker control you learned about earlier, the MonthView control also has many unique properties, as listed in Table 31.5. |
|
|
|
|
| Table 31.5 Unique Properties of the MonthView Control. | | Property | Description | | MonthColumns | Use this property to display multiple month views side by side. The first column displays one month, the next month is displayed in the next column, and so on. | | MonthRows | This property can be used to display multiple month views up and down. The one on top is the first month, the one below is the next month, and so on. | | MultiSelect | Set this property to True if you want to allow the user to select multiple dates from the MonthView control. | | MaxSelCount | If youve set the MultiSelect property to a True value, this property will specify the maximum number of days the user can select by highlighting them in the MonthView control. |
|
|
|
|
|
|
(table continued on next page) |
|
|
|
|
|